import {
  IsEmail,
  IsNotEmpty,
  IsString,
  IsNumber,
  Min,
  Max,
  Length,
} from 'class-validator';
export class AuthRegisterDto {
  @IsNotEmpty()
  @IsString()
  username: string;

  @IsNotEmpty()
  @IsString()
  nickname: string;

  @IsNotEmpty()
  @IsString()
  password: string;

  @IsEmail()
  email: string;

  @IsString()
  @Length(11, 11)
  phone: string;

  @IsNotEmpty()
  @IsNumber()
  @Min(100000)
  @Max(999999)
  captcha: number;
}
